﻿using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Configuration.Json;

namespace Test;

public static class BasicConfigServices
{
    public static IConfiguration Configuration { get; set; } = new ConfigurationBuilder()
        .SetBasePath(AppDomain.CurrentDomain.BaseDirectory)
        .Add(new JsonConfigurationSource { Path = "appsettings.json", ReloadOnChange = true })
        .Build();

    public static string AdminConnectionString => Configuration.GetConnectionString("AdminConnectionString");
}
